package gov.gfbzb.advice.controller.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(types = "UserVO", description = "user前端显示对象")
public class FileInfoVO {
    @Schema(name = "name", description = "文件名")
    private String name;
    @Schema(name = "size", description = "文件大小")
    private String size;
    @Schema(name = "isDirectory", description = "是否是文件夹")
    private boolean isDirectory;
    @Schema(name = "createTime", description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @Schema(name = "lastModified", description = "最后修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastModified;
}
